package com.zenith.article.feign;

import com.zenith.article.po.dto.ArtArticleDTO;
import com.zenith.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 文章服务Feign客户端
 *
 * @author zenith
 * @since 2025-08-29
 */
@FeignClient(name = "zenith-article-service")
public interface ArticleFeignClient {

    /**
     * 根据ID获取文章详情
     *
     * @param id 文章ID
     * @return 文章详情
     */
    @GetMapping("/api/article/{id}")
    Result<ArtArticleDTO> getArtArticleDetail(@PathVariable("id") Long id);
}